package com.dollar.ruyuan_juc.nonLockImpl.immutable.smsGatewaySystem;

/**
 * 短信服务商的基本信息
 * SmsInfo 的不可变保证了多线程下 的 url 和 maxSieBytes的正确匹配
 * 2021-10-11 19:33:37
 */
public final class SmsInfo {
    //短信服务商的 请求  url
    private final String url;
    //短信内容最多多少字节
    private final Long maxSieBytes;

    public SmsInfo(String url, Long maxSieBytes) {
        this.url = url;
        this.maxSieBytes = maxSieBytes;
    }

    public String getUrl() {
        return url;
    }

    public Long getMaxSieBytes() {
        return maxSieBytes;
    }

    public SmsInfo(SmsInfo smsInfo) {
        this.url = smsInfo.getUrl();
        this.maxSieBytes = smsInfo.getMaxSieBytes();
    }
}
